#include <iostream>
#include <cstring>
#include <stdio.h>
using namespace std;
int main() {
	string s;
//	freopen("in.txt", "r", stdin);
	while (cin>>s) {
		int len=s.length();
		bool on=false;
		for (int i=0; i<len; ++i) {
			printf("%c",s[i]);
			if (s[i]=='-') on=true;
			if (s[i]=='+') on=false;
			if (on && s[i]>='0' && s[i]<='9' && i+1<len && s[i+1]!='+' && s[i+1]!='-') {
				printf("+");
				if (s[i+1]!='0')on=false;
			}
		}
		printf("\n");
	}
	return 0;
}
